<%label ||= nil -%>
<div id="user_field_<%=field_name.to_s -%>">
  <div class="registration-field-text" >
    <%=(label.nil?) ? field_name.titleize : label.titleize  -%>
  </div>
  <% form_remote_tag :url => {:controller=>"advertisments",:action => "user_update", :user_id=> user.id, :field_name => field_name, :label => label } do -%>
  <div class="registration-field-value">
    <div class="post-ad-saved-fields">
      <%=text_field_tag :user_field_value, user.send(field_name.to_s),:size=>40 -%>
    </div>
    <div class="post-edit-option">
      <div><%= submit_tag 'Save' %></div>
    </div>
    </div>
  <% end -%>
</div>



